import jsonschema

schema = {"type": "object",
          "properties": {"success": {"type": "boolean"}, "code": {"type": "integer"}, "message": {"type": "string"}},
          "required": ["success", "code", "message"]}
data = {"success": True, "code": 10000, "message": "操作成功"}
res = jsonschema.validate(instance=data, schema=schema)
print(res)
